package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LxmElevatorExamineInfoRowMapper implements RowMapper<LxmElevatorExamineInfo> {
    @Override
    public LxmElevatorExamineInfo mapRow(ResultSet resultSet, int i) throws SQLException {
        LxmElevatorExamineInfo lxmElevatorExamineInfo=new LxmElevatorExamineInfo();
        lxmElevatorExamineInfo.setId(resultSet.getInt("id"));
        lxmElevatorExamineInfo.setUnit_name(resultSet.getString("unit_name"));
        lxmElevatorExamineInfo.setManager_unit(resultSet.getString("manager_unit"));
        lxmElevatorExamineInfo.setCategory(resultSet.getString("category"));
        lxmElevatorExamineInfo.setDevice_install_adress(resultSet.getString("device_install_adress"));
        lxmElevatorExamineInfo.setName(resultSet.getString("name"));
        lxmElevatorExamineInfo.setTel(resultSet.getString("tel"));
        lxmElevatorExamineInfo.setExamine_month(resultSet.getString("examine_month"));
        lxmElevatorExamineInfo.setExamine_quarter(resultSet.getString("examine_quarter"));
        return lxmElevatorExamineInfo;
    }
}
